#include "EditForm.hpp"
#include "ui_EditForm.h"

#include <QButtonGroup>

EditForm::EditForm(QWidget *parent) :
    QWidget(parent),
    ui(new Ui::EditForm),
    btnGroup(new QButtonGroup(this))
{
    ui->setupUi(this);
}

EditForm::~EditForm()
{
    delete ui;
    delete btnGroup;
}

void EditForm::button_click()
{
    QObject *s=sender();
    if (s==ui->newBtn){

    }else if(s==ui->saveBtn){
        QString id=ui->idEdit->text();
    }
}
